import java.util.Scanner;

public class l3 {
    public static void main(String[] args){
        Scanner reader = new Scanner(System.in);
        System.out.println("请输入本次购物价格:");
        double a = reader.nextDouble();
        Scanner scanner = new Scanner(System.in);
        System.out.println("亲，包邮吗？（回复yes或no）");
        String h = scanner.nextLine();
        if (h.equals("yes")){
            System.out.println("付款价格为："+a);
        }else {
            a = a+ 20;
            System.out.println("付款价格为："+a);
        }
    }
}
